put NewFileName("Your File Name","Isn't this great?!")
end mouseUp
-- part contents for background part 5
----- text -----
NewFileName
-- part contents for background part 10
----- text -----
2
-- part contents for background part 6
----- text -----
This will allow you to use a Standard File Package 'Save' dialog box in your hypertalk scripts
Thanks to:
Andrew Gilmartin
Brown University
-- part contents for background part 7
----- text -----
Syntax:
NewFileName( <prompt>,<initial filename> )
Returns the fullPathName of the file to be saved, or "" (empty) if the user selected "cancel".
<prompt>, should be a simple descriptive statement about the request, such as, "Save document as?," or "Save test result to:."
<initial filename>. The first time NewFileName is called this should be empty ("") as the user is saving an untitled document. Thereafter, it should contain the name of the document as previously given by the user.